﻿@model IEnumerable<RedSand.Site.Models.CategoryInfo>
@if (Model != null)
{
    <div class="panel-news">
        <ul class="category clearfix">
            <li class="Name-category">@ViewBag.Title</li>
            @foreach (var item in Model)
            {
                <li><a title="@string.Format("category_{0}", item.CategoryID)" href="/@RedSand.Web.Language.RsLanguage.LanguageCode/news/category/@item.CategoryID">@item.Title</a></li>
            }
        </ul>
        @foreach (var item in Model)
        {
            @Html.Action("TopListNews","News",new { CategoryID = item.CategoryID})
        }
        
    </div>
}
